package com.sdp.lease.db.l_location_info.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("l_location_info")
public class LLocationInfo extends Model<LLocationInfo> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 地理编码
     */
    @TableField("location_no")
    private String locationNo;

    /**
     * 地理名称
     */
    @TableField("location_name")
    private String locationName;

    /**
     * 父级地理编号
     */
    @TableField("location_parent_no")
    private String locationParentNo;

    /**
     * 备注
     */
    @TableField("location_desc")
    private String locationDesc;

    /**
     * 排序
     */
    @TableField("location_order")
    private Integer locationOrder;

    /**
     * 国家地理编码
     */
    @TableField("location_national_no")
    private String locationNationalNo;

    /**
     * 地理层级
     */
    @TableField("location_level")
    private String locationLevel;

    /**
     * 地理类型(1市，2乡镇，3村)
     */
    @TableField("location_type")
    private String locationType;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
